<?php

namespace App\Http\Requests\Company\Login;
use App\Http\Requests\Request;


class AjaxCompanyLoginRequest extends Request {
    public function authorize(){
        return true;
    }
    public function rules(){
        $input = $this->all();
        return [
            'username'=>'required',
            'password'=>'required'
        ];
    }
    public function messages(){
        return [
            'username.required'=>'用户名必须填写',
            'password.required'=>'密码必须填写'
        ];
    }
}
